<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=US-ASCII"
    pageEncoding="US-ASCII"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<link rel="stylesheet" type="text/css" href="Style.css" />
<title>FFL Log-in</title>
</head>
<body>
Welcome to the Fantasy Football League <BR>
Please Log-In or Create an Account <BR><BR>

<FORM action="/FootballStats/log_in" method="post">
User Name &nbsp;<INPUT type="text" name="UserName" size="25"><BR>
<BR>
Password  &nbsp;&nbsp;&nbsp;<INPUT type="password" name="Password" size="27"><BR>
<BR>
<INPUT type="submit" name="button" value="Log-In">
<INPUT type="submit" name="button" value="Create New Account">
<INPUT type="submit" name="button" value="Delete Account">
</FORM>
<BR>

<% // make sure LogInState is initialized
String state = (String)request.getSession(true).getAttribute("LogInState");

if(state==null){
	request.getSession().setAttribute("LogInState", "");
	getServletContext().getRequestDispatcher("/LogIn.jsp").forward(request, response);
}%>
<c:out value="${LogInState}" />

</body>
</html>